﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BigData.DataContracts.Objects.BigData;
using BigDataFramework.Repositories;

namespace BigDataFramework.Library.Helpers
{
    public static class FourSquareHelper
    {
        private const string FOURSQUAREDATAPROVIDERNAME = "FOURSQUARE";
        private static DataProvider _dataProvider;
        public static DataProvider DataProvider { get { return _dataProvider; } }

        static FourSquareHelper()
        {
            Refresh();
        }

        public static void Refresh()
        {
            MongoDBRepository dbContext = new MongoDBRepository();

            // Retrieve the fourSquare data provider object
            _dataProvider = dbContext.ReadOne<DataProvider>(dp => dp.Name == "FOURSQUARE");
        }
    }
}
